<template>
  <div class=''>
      我是childC根组件

      <div>{{$store.state.userC.num}}</div>

      <button @click='addNum'>click</button>
  </div>
</template>

<script>
export default {
  name: '',
  data () {
    return {

    }
  },
  watch: {

  },
  props: {
  },
  components: {

  },
  computed: {

  },
  mounted() {

  },
  methods: {
addNum() {
    this.$store.commit("userC/changeNum")
}
  },
  filters: {

  }
}
</script>

<style scoped lang='css'>

</style>